package com.zytlifeservice.repository.find;

import com.zytlifeservice.domain.find.FinacialServiceBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 金融服务持久类
 * Created by Administrator on 2017/6/2.
 */
@Repository
public interface FinacialServiceRepository extends JpaRepository<FinacialServiceBean,Long> {
    //查询链接
    @Query(value = "select furl,fimage_url  from finacial_service_bean where ftype=?1",nativeQuery = true)
    public List<FinacialServiceBean>   findFinacialServiceAll(String ftype);
    //查询金融其他服务
    @Query(value = "select fid,fimage_url,furl,ftype from finacial_service_bean where  ftype=4 or ftype=5 or ftype=6",nativeQuery = true)
    public List<FinacialServiceBean>   findFinacialByServiceAll();
}
